package com.tingyuge.thinking.spring.configuration.bean.factory;

import com.tingyuge.thinking.spring.ioc.overview.domain.User;
import org.springframework.beans.factory.FactoryBean;

/**
 * {@link com.tingyuge.thinking.spring.ioc.overview.domain.User} bean 的 {@link org.springframework.beans.factory.FactoryBean}
 * @author xiaodao
 * @version 1.0
 * @date 2021/6/27
 */
public class UserFactoryBean implements FactoryBean {
    @Override
    public Object getObject() throws Exception {
        return User.createUser();
    }

    @Override
    public Class<?> getObjectType() {
        return User.class;
    }
}
